package com.example.decorator.humburger.concreteDecorator;

import com.example.decorator.humburger.component.Humburger;
import com.example.decorator.humburger.decorator.Condiment;

/**
 * 具体的装饰者类 辣椒
 * @author zhoubin
 *
 * @createDate 2017年9月22日 下午1:58:53
 */
public class Chilli extends Condiment {
	
	Humburger humburger;
	public Chilli(Humburger humburger) {
		this.humburger = humburger;
	}

	@Override
	public String getName() {
		return this.humburger.getName() + " 加辣椒";
	}

	@Override
	public double getPrice() {
		return this.humburger.getPrice() + 1;
	}

}

